import { CompanyItem } from './model';
import { defHttp } from '/@/utils/http/axios';

enum Api {
  Detail = '/company/admin/company/detail', // 公司简介
  Update = '/company/admin/company/update', // 更新公司简介
}

export const UpdateData = (params: CompanyItem) =>
  defHttp.post<CompanyItem>({ url: Api.Update, params });

export const getDetail = (params: { zhCn: any }) => defHttp.get<any>({ url: Api.Detail, params });
